package com.lifo.utils.common.messagehandler;



/**
 *
 * @author why
 * @date 2018/3/29 0029
 */
public enum DefaultMsgResult {
    /**
     * 操作成功
     */
    SUCCESS("8888","操作成功"),

    /**
     * 查询成功，未能获取到你想要的数据
     */
    NODATA("8001","查询成功，未能获取到你想要的数据"),

    /**
     *参数为空或格式错误
     */
    PARAMS_ERROR("6001", "参数为空或格式错误"),

    /**
     *权限异常
     */
    ACCESS_ERROR("10001","权限异常"),

    /**
     *系统错误
     */
    SYSTEM_ERROR("5555","系统错误");




    private String code;
    private String msg;

    DefaultMsgResult(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
